@boxWidth: 350px;
@boxHeight: 500px;
@boxSizing: 2px 2px 2px rgba(0, 0, 0, .1);
@buttonSizing: 0 -2px 4px rgba(0, 0, 0, .1);
@border: wheat;
@white: white;
@rdaiue: 21px;
@zc-botton: #e79e85;

#login {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;

  .login-box {
    position: relative;
    width: @boxWidth;
    height: @boxHeight;
    background-color: @border;
    border-radius: 20px;
    overflow: hidden;

    .login-conter {
      position: absolute;
      width: 70%;
      top: 40%;
      left: 50%;
      transform: translateX(-50%) translateY(-50%);
      transition: .3s ease;

      .loign-title {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 14px;
        width: 100%;
        text-align: center;
        color: #999;
        margin-bottom: 20px;
        transition: .3s;
        cursor: pointer;

        h2 {
          color: white;
          margin: 0 5px;
          font-size: 1.5em;
        }

        p {
          display: none;
        }


      }

      .ts {
        font-size: 12px;
        height: 20px;
        padding-left: 5px;
        color: rgb(163, 92, 0);

      }

      .index-register {
        width: 100%;
        box-shadow: @boxSizing;
        border-radius: 20px;
        overflow: hidden;
        background-color: white;

        input {
          width: 100%;
          height: 40px;
          border: none;
          padding-left: 20px;
          cursor: pointer;
          outline: none;
          border-bottom: 1px solid @border;
        }

        div {
          position: absolute;
          width: 40px;
          height: 40px;
          display: flex;
          align-items: center;
          right: 0;
          transform: translateY(-40px);
          // display: none;
          opacity: 0;

          i {
            color: chartreuse;
          }
        }
      }

      .zc {
        width: 100%;
        height: 40px;
        cursor: pointer;
        border-radius: @rdaiue;
        background: @zc-botton;
        margin-top: 20px;
        border: none;
        opacity: .8;
        color: @white;
        box-shadow: @boxSizing;
      }
    }

    // 注册需要添加的 class
    .re-box {
      .loign-title {
        margin-top: -40%;
        margin-bottom: 30px;

        p {
          display: block;
          font-size: 16px;
        }

        .index-register {
          display: none;
        }

        h2 {
          font-size: 20px;
        }
      }
    }
  }

  // 登录
  .login-button {
    position: absolute;
    width: 100%;
    min-height: 100%;
    top: 90%;
    left: 50%;
    background-color: rgba(250, 250, 250, 1); //临时 
    transform: translate(-50%);
    transition: .3s ease;

    .conter {
      position: relative;
      width: 70%;
      margin: auto;
      display: none;
    }

    .loign-title {
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 14px;
      width: 100%;
      text-align: center;
      color: #999;
      margin-top: -10px;
      margin-bottom: 35px;
      transition: .3s;
      cursor: pointer;

      h2 {
        color: #333;
        margin: 0 10px;
        transition: .3s;
        font-size: 1.5em;
      }

      p {
        display: block;
      }
    }

    label {
      position: relative;
      width: 99.2%;
      display: block;
      border: 1px solid rgba(0, 0, 0, 0);
      border-bottom: 1px solid @border;

      input {
        width: 100%;
        height: 40px;
        border: none;
        padding-left: 20px;
        cursor: pointer;
        outline: none;
      }
    }

    .dr {
      width: 100%;
      height: 40px;
      cursor: pointer;
      border-radius: @rdaiue;
      background: @zc-botton;
      margin-top: 35px;
      border: none;
      color: #000;
    }
  }

  // 登录需要添加的 class
  .lg-box {
    top: 22%;

    .loign-title {
      margin-top: 30px;

      h2 {
        color: #000;
      }

      p {
        display: none;
      }
    }

    .conter {
      display: block;
    }

    .dr {
      display: block;
    }
  }

  .login-button::before {
    content: '';
    position: absolute;
    top: -50px;
    width: 200%;
    height: 300px;
    background-color: @white;
    z-index: -1;
    left: 50%;
    border-radius: 100%;
    transform: translateX(-50%);
    box-shadow: @buttonSizing;
  }
}

.login-box {
  position: static;
  overflow: auto;
}

@keyframes widht {

  0%,
  70% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  #login {
    .login-box {
      background-image: url('@/assets/img/user/bg/234.jpeg');
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center;

      .lg-box {
        background-color: #fff !important;
      }

      .lg-box::after {
        content: '';
        position: absolute;
        top: -50px;
        width: 200%;
        height: 300px;
        background-color: rgba(250, 250, 250, 1);
        z-index: -1;
        left: 50%;
        border-radius: 100%;
        transform: translateX(-50%);
        box-shadow: @buttonSizing;
      }

      .login-conter {

        .index-register {
          background-color: rgba(250, 250, 250, 0);

          input {
            background: rgba(250, 250, 250, .7);
          }
        }
      }

      .login-button {
        background-color: rgba(250, 250, 250, 0);
      }

      .login-button::before {
        background-color: rgba(250, 250, 250, .5);
      }

      .re-box {
        .loign-title {
          margin-top: -40% !important;
          font-size: 20px !important;

          p {
            display: block;

          }
        }
      }
    }

    .login-box {
      width: 100%;
      height: 100%;
      border-radius: 0;
    }

    .lg-box {
      top: 25%;

    }
  }
}

@media (max-width: 500px) {
  #login {
    .login-box {
      .login-conter {
        .loign-title {
          font-size: 16px !important;
        }
      }
    }
  }
}

@media (max-width: 450px) and (min-height: 750px) {


  #login {

    // 注册要添加的类
    .re-box {
      top: 230px !important;
    }

    // 登录要添加的类
    .lg-box {
      top: 150px !important;


      .loign-title {
        padding-top: 150px !important;
      }

    }
  }
}
